package com.wenson.behavior.visitor;

import java.time.LocalDate;

/**
 * @ClassName: Product
 * @Author: luowangcheng
 * @Date: 2024/6/16 15:33
 * @Description:
 */
public abstract class Product {

    private String name;
    private LocalDate produceDate;
    private float price;

    public Product(String name, LocalDate produceDate, float price) {
        this.name = name;
        this.produceDate = produceDate;
        this.price = price;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getProduceDate() {
        return produceDate;
    }

    public void setProduceDate(LocalDate produceDate) {
        this.produceDate = produceDate;
    }

    public float getPrice() {
        return price;
    }

    public void setPrice(float price) {
        this.price = price;
    }
}
